<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePositionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('positions', function (Blueprint $table) {
            $table->increments('id');

            $table->string('title')->comment('标题')->nullable();
            $table->string('phone')->comment('手机')->nullable();
            $table->string('position')->comment('职位')->nullable();
            $table->string('type')->comment('职位类型')->nullable();
            $table->string('money_min')->comment('最低工资')->nullable();
            $table->string('money_max')->comment('最高工资')->nullable();
            $table->string('people')->comment('招聘人数')->nullable();
            $table->string('work_time')->comment('工作时间')->nullable();
            $table->string('gender')->comment('要求性别')->nullable();
            $table->string('edu')->comment('要求教育')->nullable();
            $table->string('contacts')->comment('联系人')->nullable();
            $table->string('company')->comment('公司')->nullable();
            $table->string('address')->comment('参考地址')->nullable();
            $table->text('content')->comment('详细内容')->nullable();
            $table->dateTime('posted_at')->comment('发布时间')->nullable();


            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('positions');
    }
}
